<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>科鹏机电</title>
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button type="button" class="btn  btn-primary" onclick="exportData()"><i class="fa fa-plus" aria-hidden="true"></i>导出
							</button>
						</div>
						<div class="columns pull-right col-md-2 nopadding">
							<input id="searchName" type="hidden" th:value="${itmid}" class="form-control"
								   placeholder="itmid">
						</div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true" class="table table-hover table-striped">
						<thead>
						<th style="" tabindex="0">
							<div class="th-inner ">发票代码</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">状态</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">发票号码</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">发票日期</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">项目名称</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">合同编号</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">开票方</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">收票方</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">发票类型</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">税率</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">净额</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">税额</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">票额</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">开票内容</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">备注</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">创建人</div>
							<div class="fht-cell"></div>
						</th>
						<th style="" tabindex="0">
							<div class="th-inner ">创建时间</div>
							<div class="fht-cell"></div>
						</th>
						</thead>
						<tbody>
						<tr th:each="billing : ${billingDOList}">
							<td th:text="${billing.invoiceCode}"></td>
							<td>
								<span class="label label-primary" th:if="${billing.status} eq 1">新创建</span>
								<span class="label label-primary" th:if="${billing.status} eq 2">等待开票</span>
								<span class="label label-primary" th:if="${billing.status} eq 3">已开票</span>
								<span class="label label-danger" th:if="${billing.status} eq 4">作废</span>
							</td>
							<td th:text="${billing.invoiceNumber}"/>
							<td th:text="${#dates.format(billing.invoiceTime,'yyyy-MM-dd HH:mm:ss')}"/>
							<td th:text="${billing.projectName}"/>
							<td th:text="${billing.projectNumber}"/>
							<td th:text="${billing.billingComplayName}"/>
							<td th:text="${billing.receiptName}"/>
							<td th:text="${billing.invoiceType}"/>
							<td th:text="${billing.taxRate}"/>
							<td th:text="${billing.netAmount}"/>
							<td th:text="${billing.taxAmount}"/>
							<td th:text="${billing.invoiceAmount}"/>
							<td th:text="${billing.invoiceDescr}"/>
							<td th:text="${billing.remarks}"/>
							<td th:text="${billing.userNameCreate}"/>
							<td th:text="${#dates.format(billing.gmtCreate,'yyyy-MM-dd HH:mm:ss')}"/>
						</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/appjs/fin/receipt/billingByitm.js"></script>
</body>
</html>